package com.libre.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.libre.auth.entity.Permission;

import java.util.List;

/**
* @description   菜单资源
* @author        庞留杰
* @date          2021/12/19 18:59
* @version       V1.0
**/
public interface PermissionService extends IService<Permission>  {

    IPage<Permission> findPage(Page initMpPage,Permission permission);

    List<Permission> findList(Permission permission);

    Permission findById(String id);

    boolean add(Permission permission);

    boolean update(Permission permission);

    boolean delete(String id);

    List<Permission> menuTree( Permission permission);

}
